/*
 * Project Name: jmax
 * File Name: FilterRule.java
 * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
 */
package com.xdtech.sys.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * TODO 一句话功能简述，请确保和下面的block tags之间保留一行空行
 * <p>
 * TODO 功能详细描述，若不需要请连同上面的p标签一起删除
 * 
 * @author <a href="max.zheng@zkteco.com">郑志雄</>
 * @version TODO 添加版本
 * @see 相关类或方法，不需要请删除此行
 * @since 2015-3-18 下午2:21:45
 */
@Entity
@Table(name="SYS_FILTER_RULE")
public class FilterRule extends BaseModel implements Serializable {
	private static final long serialVersionUID = 7102087206029598989L;

	@Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.AUTO)
	protected Long id;
	@Column(name = "RULE_FIELD")
	private String field;
	@Column(name = "RULE_OPTION")
	private String option;
	@Column(name = "RULE_TYPE")
	private String type;
	@Column(name = "RULE_VALUE")
	private String value;
	@ManyToOne
	@JoinColumn(name = "GROUP_ID")
	private FilterGroup filterGroup = new FilterGroup();
	public Long getId()
	{
		return id;
	}
	public void setId(Long id)
	{
		this.id = id;
	}
	public String getField()
	{
		return field;
	}
	public void setField(String field)
	{
		this.field = field;
	}
	public String getOption()
	{
		return option;
	}
	public void setOption(String option)
	{
		this.option = option;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public String getValue()
	{
		return value;
	}
	public void setValue(String value)
	{
		this.value = value;
	}
	public FilterGroup getFilterGroup()
	{
		return filterGroup;
	}
	public void setFilterGroup(FilterGroup filterGroup)
	{
		this.filterGroup = filterGroup;
	}
	
	
}
